Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-90

json encoding does not encode unions correctly

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.1.0
    • java
    • None

    Description

      The Json encoding implemented in Java does not encode unions as intended. In particular:

      • branches are labeled with their Java type enum name (all caps) rather than their Json type name (lowercase)
      • branches for named types (records, enums, fixed) are labeled with the type rather than the name
      • nulls are labelled – a null value for a union should be untagged

      Attachments

        1. AVRO-90.patch
          10 kB
          Doug Cutting

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cutting Doug Cutting
            cutting Doug Cutting
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment